package
        com.zzc.sale.controller.apis;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hos.entity.stock.InventoryLog;
import com.hos.vo.Result;
import com.zzc.sale.service.InventoryLogService;
import com.zzc.sale.vo.InventoryLogVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author：xIAO_ZHOU_TX
 * @date：Created in 2023/12/18 10:13
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/sale/api/erp/inventoryLog")
@Api(value = "库存查询相关接口",tags ="库存查询相关接口" )
public class APIInventoryLogConrtoller {
    @Resource
    private InventoryLogService inventoryLogService;
    @PostMapping("/listInventoryLogForPage")
    @ApiOperation(value = "查询所有批次库存以及价格")
    public Result<Page<InventoryLog>> listInventoryLogForPage(@RequestBody InventoryLogVo inventoryLogVo){
        return new Result<>(200,"查询成功",inventoryLogService.listInventoryLogForPage(inventoryLogVo));
    }

}